package com.work.demo.controller;

import com.work.demo.entity.LocalTest;
import com.work.demo.utils.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: demo
 * @Package: com.example.demo.controller
 * @ClassName: TestController
 * @Author: Deng YuBin
 * @Description:
 * @Date: 2020/11/24 15:04
 * @Version: 1.0
 */
@RestController
@RequestMapping("/test" )
public class TestController {


	@PostMapping("/bookApi")
	public R<String> getApi(@RequestBody LocalTest localTest){
		String name = localTest.getName();
		System.out.println(name);
		return R.ok(null,"成功");
	}
}
